package com.mantru.iotpot.dao;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Environment;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;

import androidx.annotation.Nullable;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * 喷泵校准时间记录表
 * 作者： cmh
 * 日期： 2025/03/13
 */

public class t_check_nozzle
{
    public String table_name = "t_check_nozzle";
    public String nozzle_id, last_time;
    public String create_sql = "create table t_check_nozzle(nozzle_id integer primary key, last_time integer)";
    public String update_sql = "update t_check_nozzle set last_time=? where nozzle_id=?";
    public String list_sql = "select * from t_check_nozzle order by nozzle_id";
    public String drop_sql = "drop table t_check_nozzle";


    public ContentValues GetInsertContentValues()
    {
        ContentValues cv = new ContentValues();
        cv.put("nozzle_id", nozzle_id);
        cv.put("last_time", last_time);
        return cv;
    }

    public String[] GetUpdateValues()
    {
        String[] values = new String[2];
        values[0] = last_time;
        values[1] = nozzle_id;
        return values;
    }

    public String[] GetListValues()
    {
        String[] values = new String[0];
        return values;
    }


}
